
const w = document.body.clientWidth

const getPx = (v) => {
  return w / 1920 * v + 'px'
}

export const airTabs = [
  {
    key: '1',
    value: '空调温度监控',
    swipeLeft: getPx(70),
    compName: 'temp-monitor',
    dashtype: ''
  },
  {
    key: '2',
    value: '环境温湿度监控',
    swipeLeft: getPx(230),
    compName: 'hum-monitor',
    dashtype: ''
  },
  {
    key: '3',
    value: '告警记录',
    swipeLeft: getPx(360),
    compName: 'alarm-record',
    dashtype: ''
  },
]

export const fridgeTabs = [
  {
    key: '1',
    value: '温度监控',
    swipeLeft: getPx(50),
    compName: 'temp-monitor',
    dashtype: ''
  },
  {
    key: '2',
    value: '告警记录',
    swipeLeft: getPx(160),
    compName: 'alarm-record',
    dashtype: ''
  },
]
export const humTabs = [
  {
    key:'1',
    value: '环境温湿度监控',
    swipeLeft: getPx(230),
    compName: 'hum-monitor',
    dashtype: ''
  }
]
export const coffeeTabs = [
  {
    key: '1',
    value: '销售量统计',
    swipeLeft: getPx(60),
    compName: 'sales-statistics',
    dashtype: 'CoffeSalesD'
  },
  {
    key: '2',
    value: '生产记录',
    swipeLeft: getPx(180),
    compName: 'production-record',
    dashtype: 'CoffeHaccp'
  },
  {
    key: '3',
    value: '萃取时间',
    swipeLeft: getPx(290),
    compName: 'extraction-time',
    dashtype: 'CoffeETime'
  },
  {
    key: '4',
    value: '清洗记录',
    swipeLeft: getPx(405),
    compName: 'clearning-time',
    dashtype: 'CoffeClean'
  },
  {
    key: '5',
    value: '告警记录',
    swipeLeft: getPx(515),
    compName: 'alarm-record',
    dashtype: ''
  },
]